//
//  UserUtils.h
//  ShenWeiRent
//
//  Created by iMac on 2019/3/11.
//  Copyright © 2019年 liyefu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserInfoEntity.h"

NS_ASSUME_NONNULL_BEGIN

@interface UserUtils : NSObject

+ (instancetype)shared;

- (BOOL)isLogin;
- (void)saveUserData:(NSDictionary *)data;

@property (nonatomic, copy, readonly) NSString *session;
- (void)savesession:(NSString *)session;
- (void)clearsession;
@property (nonatomic, copy, readonly) NSString *telString;
- (void)saveTelString:(NSString *)telString;
- (void)clearTelString;
@property (nonatomic, copy, readonly) NSString *nameString;
@property (nonatomic, copy) NSString *vipId;//会员ID
@property (nonatomic, copy) NSString *vipCode;//会员卡号
@property (nonatomic, copy) NSString *orgName;//会员名
@property (nonatomic, assign) BOOL isMembership;//是否是正式会员
@property (nonatomic, copy) NSString *typeName;// 会员卡种名

// 个人中心获取会员信息时传入
- (void)updateUserData:(UserInfoEntity *)data;


- (void)clearData;


+ (void)showLoginVc;


// 是否显示会员相关信息
@property (nonatomic) BOOL showVip;


@end

NS_ASSUME_NONNULL_END
